from turtle import *
import math




def love(k, c):
    # 密集数  k
    # 爱心个数  c
    Turtle()
    speed(10000)
    color('blue')
    right(90)
    penup()
    fd(100)
    pendown()
    left(135)
    for i in range(c):
        if i < 10:
            color('blue')
        elif 10 < i < 30:
            color('red')
        elif 30 < i < 40:
            color('yellow')
        else:
            color('red')
        forward(200 - i * k)
        circle(100 - i * k, 180)
        fd(k * i)
        right(90)
        fd(k * i)
        circle(100 - k * i, 180)
        fd(200 - (i) * k)
        left(135)
        penup()
        fd(k * math.sqrt(2))
        pendown()
        right(45)
    done()


if __name__ == '__main__':
    main()
